class CreateLayers < ActiveRecord::Migration
  def self.up
    create_table :layers do |t|
      t.column :style_id, :int
      t.column :title, :string
      t.column :title_attribute, :string
      t.column :zoom_min, :int
      t.column :zoom_max, :int
      t.column :position, :int
      t.column :visible, :boolean, :default => true
      t.column :created_at, :timestamp
      t.column :updated_at, :timestamp
    end
  end

  def self.down
    drop_table :layers
  end
end
